package win.demonlegion.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import win.demonlegion.mapper.CallbackDataMapper;
import win.demonlegion.module.CallbackDataBean;
import win.demonlegion.service.inte.CallbackDataService;

import java.util.List;

@Service("callbackDataService")
public class CallbackDataServiceImpl implements CallbackDataService {
    private static final Logger logger = LoggerFactory.getLogger(CallbackDataServiceImpl.class);

    @Autowired
    private CallbackDataMapper callbackDataMapper;

    @Override
    public int count() {
        return 0;
    }

    @Override
    public List<CallbackDataBean> findAll() {
        return callbackDataMapper.findAll();
    }

    @Override
    public int add(CallbackDataBean callbackDataBean) {
        return callbackDataMapper.add(callbackDataBean);
    }

    @Override
    public int update(CallbackDataBean callbackDataBean) {
        return callbackDataMapper.update(callbackDataBean);
    }

    @Override
    public CallbackDataBean selectById(String id) {
        return callbackDataMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return callbackDataMapper.deleteById(id);
    }
}
